package whu.cn.whushare.ui.main.my;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.androidplus.ui.ToastManager;
import com.androidplus.util.ViewMapping;
import com.androidplus.util.ViewMappingUtil;

import whu.cn.whushare.R;
import whu.cn.whushare.ui.common.BaseActivity;

/**
 * 文件名：BuildActivity
 * 描述：
 * 作者：胡平平
 * 时间：2015/1/6
 */
@ViewMapping(id=R.layout.activity_group_resource)           //获取GroupResourceActivity的布局文件
public class GroupResourceActivity extends BaseActivity {
    @ViewMapping(id = R.id.image_avatar)                    //获取“群头像”控件
    private ImageView mImageAvatar;
    @ViewMapping(id=R.id.group_name)                        //获取“群名称”文本框
    private TextView mGroupName;
    @ViewMapping(id=R.id.group_id)                          //获取“群号”文本框
    private TextView mGroupId;
    @ViewMapping(id=R.id.group_type)                        //获取“群类型”文本框
    private TextView mGroupType;
    @ViewMapping(id=R.id.group_member)                      //获取“群成员”文本框
    private TextView mGroupMember;
    @ViewMapping(id = R.id.add_group_member)                //获取“添加群成员”控件
    private ImageView mAddGroupMember;
    @ViewMapping(id = R.id.group_host_layout)               //获取“群主”布局控件
    private RelativeLayout mGroupHostLayout;
    @ViewMapping(id = R.id.group_setting_layout)            //获取“群消息设置”布局控件
    private RelativeLayout mGroupSettingLayout;
    @ViewMapping(id = R.id.group_share_layout)              //获取“群共享”布局控件
    private RelativeLayout mGroupShareLayout;

    @Override
    /**
     * 重写父类的方法，初始化当前activity
     * @see android.app.Activity#onCreate(android.os.Bundle)
     */
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        initViewsAndActions();
    }

    /**
     * 方法名：initViewsAndActions()
     * 功 能：初始化页面控件及其动作
     */
    private void initViewsAndActions() {
        View root = ViewMappingUtil.mapView(this, this);
        getTopBar(root);
        mTopBar.title.setText(R.string.group_resource);
        mTopBar.searchView.setVisibility(View.INVISIBLE);
        initAction();
    }


    private void initAction() {

    }
}

